package com.itheima.array;

public class Demo3array {
    public static void main(String[] args) {
        int[] arr = new int[]{11,22,33};
        System.out.println(arr[0]);
        System.out.println(arr[1]);
        System.out.println(arr[3]);

        int[] arr1 = {11,22,33,};//没有new 但开辟了空间
        System.out.println(arr1);
        System.out.println(arr1[0]);
        System.out.println(arr1[1]);
        System.out.println(arr1[2]);
    }
}
